home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / circuits / irsim-ca.2 / irsim-ca / irsim-cap-9.2 / src / utils / Makedep / makedep.h < prev    next >
C/C++ Source or Header  |  1990-12-23  |  1KB  |  77 lines

  1. /*
  2.  * Primary include file for makedep
  3.  */
  4.  
  5.  
  6. #include <stdio.h>
  7. #include <errno.h>
  8.  
  9. #define FALSE 0
  10. #define TRUE 1
  11.  
  12. extern int errno;
  13. int Debug;
  14. char *MyName;    /* name by which makedep was invoked */
  15.  
  16.  
  17. /*
  18.  * List definitions
  19.  */
  20.  
  21. /* StringList record states. */
  22. #define HEADER 1
  23. #define UNPROCESSED 2
  24. #define PROCESSED 3
  25. #define START_MARK_VALUE 4
  26.  
  27. typedef struct StringListType
  28.   {
  29.     char *str;
  30.     int state;
  31.     struct DepListType *dep;
  32.     struct StringListType *next;
  33.   }
  34.     StringList;
  35.  
  36. typedef struct DepListType
  37.   {
  38.     struct StringListType *inclFile;
  39.     struct DepListType *next;
  40.   }
  41.     DepList;
  42.  
  43. extern StringList *MakeList();
  44.  
  45.  
  46. /*
  47.  * Various string objects and their default defns.
  48.  */
  49.  
  50. /* Extensions for object. */
  51. #define DefaultObjExt "o"
  52. #define DefaultVObjExt "b"
  53. char ObjExt[16];
  54.  
  55. /* Source file list. */
  56. StringList *SrcFiles;
  57.  
  58. /* Search lists for include files. */
  59. #define DefaultVInclDirs "/usr/sun/include /usr/local/include /usr/include"
  60. #define DefaultXVInclDirs "/usr/sun/xinclude /usr/sun/include /usr/local/include /usr/include"
  61. #define DefaultUnixInclDirs "/usr/include"
  62. StringList *InclDirs;
  63. StringList *UserInclDirs;
  64.  
  65. /* Output file name. */
  66. #define DefaultOutputFileName "dependencies"
  67. char OutputFileName[128];
  68.  
  69. /* Command line option flags */
  70. int NFlag, UFlag, VFlag, xVFlag, eFlag;
  71.  
  72. /* List of include files that have been encountered. */
  73. StringList *IList;
  74.  
  75.  
  76. #define Equal(a,b) (strcmp(a,b) == 0)
  77.